package com.neuedu.corejava.jdbc.bean;

import java.util.Date;

/**
 * 使用面向对象编程思路，面向数据库的表格设计java数据实体类
 * 编写一个类与数据库的表格形成对应关系：类名与表名对应，类的属性与表的类对应（名称与名称对应，数据类型与数据类型对应）
 * 
 * @author admit
 *
 */
public class Users {
	/**
	 *  用户编号
	 */
	private int id;
	/**
	 *  用户账号
	 */
	private String name;
	/**
	 *  年龄
	 */
	private int age;
	/**
	 *  出生日期
	 */
	private Date birthdate;

	public Users() {
		super();
	}

	public Users(int id, String name, int age, Date birthdate) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.birthdate = birthdate;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the birthday
	 */
	public Date getBirthdate() {
		return birthdate;
	}

	/**
	 * @param birthday
	 *            the birthday to set
	 */
	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}

}
